package com.correo.vista.client.windows.event;

import javax.swing.event.InternalFrameEvent;
import javax.swing.event.InternalFrameListener;

import com.correo.vista.client.windows.Correo;
import com.correo.vista.client.windows.ventanasInternas.InternalFrameImpl;

public class ActionListenerIntFrameClose implements InternalFrameListener {

	private Correo 					correo;
	private InternalFrameImpl		internalFrame;
	public ActionListenerIntFrameClose(Correo correo,InternalFrameImpl internalFrame){
		this.internalFrame = internalFrame;
		this.correo = correo;
	}
	
	public void internalFrameActivated(InternalFrameEvent e) {
		correo.setTextStatus(internalFrame.getTitle());
		
	}

	public void internalFrameClosed(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	public void internalFrameClosing(InternalFrameEvent e) {
		correo.removeItemMenu(internalFrame.getItemMenu());
		
	}

	public void internalFrameDeactivated(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	public void internalFrameDeiconified(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	public void internalFrameIconified(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	public void internalFrameOpened(InternalFrameEvent e) {
		// TODO Auto-generated method stub
		
	}

	
}
